package com.yeyks.common.em;

/**
 * @author fuchangshuai
 * @date 2019/07/19 11:51
 */
public enum SmsCodeTypeEnum {

    //登录或注册验证码
    LOGIN_OR_REGIST(0, "SMS_147725180"),
    //酒店提现验证码
    WITHDRAWAL(1, "SMS_171115435"),
    //绑定银行账户验证码
    BIND(2, "SMS_171115422"),
    //B端APP忘记密码
    FORGET_PWD_ADMIN_APP(3, "SMS_176520391"),
    //推广海报验证码
    PROMOTION_POSTER(4, "SMS_177350048");

    int value;
    String desc;

    SmsCodeTypeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer value() {
        return this.value;
    }

    public String desc() {
        return this.desc;
    }

    public static String getDesc(int value) {
        for (SmsCodeTypeEnum smsCodeTypeEnum : values()) {
            if (smsCodeTypeEnum.value() == value) {
                return smsCodeTypeEnum.desc();
            }
        }
        return null;
    }
}
